<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<link href='/pintuan/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/pintuan/Public/Member/js/wechat.js'></script>
<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
					<li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/index');?>">首次关注设置</a></li>
					<li class="<?php if((ACTION_NAME) == "classify"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/classify');?>">自定义菜单设置</a></li>
					<li class="<?php if((ACTION_NAME) == "keyword"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/keyword');?>">关键词回复</a></li>
					<li class="<?php if((ACTION_NAME) == "token"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/token');?>">微信接口配置</a></li>
					<li class="<?php if((ACTION_NAME) == "auth"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/auth');?>">微信授权配置</a></li>
					<li class="<?php if((ACTION_NAME) == "pay"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/pay');?>">运费&支付管理</a></li>
				</ul>
			</div>

		
		

			

<script language="javascript">
	$(document).ready(wechat_obj.attention_init);
</script>
	<div id="attention" class="r_con_wrap">
		<form id="attention_reply_form" class="r_con_form" method="post"
			action="">
			<div class="rows">
				<label>回复类型</label> <span class="input"> 
				<select name="ReplyMsgType">
						<option value="0" <?php if(($userEvent["msgtype"]) == "text"): ?>selected="selected"<?php endif; ?> >文字消息</option>
						<option value="1" <?php if(($userEvent["msgtype"]) == "text"): else: ?>selected="selected"<?php endif; ?>>图文消息</option>
				</select>
				</span> 
				<div class="clear"></div>
			</div>
			<div class="rows" id="text_msg_row">
				<label>回复内容</label> <span class="input"><textarea
						name="TextContents"><?php echo ($userEvent["textmsg"]["text"]); ?></textarea></span>
				<div class="clear"></div>
			</div>
			<div class="rows" id="img_msg_row">
				<label>回复内容</label> <span class="input"> 
				  <select name='MaterialId'>
						<option value=''>--请选择--</option>
						<optgroup label='---------------图文消息---------------'></optgroup>
                              <?php if(is_array($newsmsgs)): foreach($newsmsgs as $key=>$v): ?><option value='<?php echo ($v["id"]); ?>' <?php if(($userEvent["msgid"]) == $v["id"]): ?>selected="selected"<?php endif; ?>>【<?php if(($v["msgtype"]) == "onenews"): ?>单图文<?php else: ?>多图文<?php endif; ?>】<?php echo ($v["title"]); ?></option><?php endforeach; endif; ?>
				</select>
				<a href="<?php echo U('Material/index');?>" class="material">素材管理</a></span>
				<div class="clear"></div>
			</div>
			<div class="rows" id="img_msg_row">
				<label>任意关键词</label> <span class="input">
				<input type="checkbox" value="1" <?php if(($userEvent["arbitrarily"]) == "1"): ?>checked<?php endif; ?> name="arbitrarily" /><span
					class="tips">开启（开启后，当输入的关键字无相关的匹配内容时，则使用本设置回复）</span></span>
				<div class="clear"></div>
			</div>
			<div class="rows">
				<label></label> 
				<span class="input">
				  <input type="submit" class="btn_green" name="submit_button" value="提交保存" />
				  <input type="hidden" name="event" value="subscribe" />
				  
				</span>
				<div class="clear"></div>
			</div>
			<input type="hidden" name="do_action"
				value="wechat.attention_reply">
		</form>
	</div>

			
			</div>
			</div>
</body>
</html>